/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.services;

import com.dp.model.Articles;
import com.dp.model.Books;
import com.dp.utils.BaseException;
import java.util.Date;
import java.util.List;

/**
 *
 * @author hisik
 */
public interface IItemServices {
    
    public List<Books> getBooksByName(String name) throws BaseException ;
    
    public Books getBooksByObjid(Long objid) throws BaseException ;
    
    public Articles getArticlesByObjid(Long objid) throws BaseException ;
    
    public List<Articles> getArticlesByName(String name) throws BaseException ;

    public Books saveOrUpdateBooks(
            Long objid,
            int authorCount, 
            String authorName, 
            String bookName, 
            String isbn, 
            String issueArea, 
            Date issueDate, 
            int pageCount,
            String publisherName) throws BaseException ;
    
    public Articles saveOrUpdateArticles(
            Long objid, 
            int authorCount, 
            String articleName, 
            String issue, 
            String issueArea, 
            Date issueDate,  
            String journal,
            int pageCount, 
            String publisherName,
            String volume) throws BaseException;
    
    public List<Books> loadBookList() throws BaseException ;
    
    public List<Articles> loadArticleList() throws BaseException ;
    
    public void deleteBookByObjid(Long objid) throws BaseException ;
    
    public void deleteArticleByObjid(Long objid) throws BaseException ;
}
